package com.iims.flowable.flow.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author fanpei
 * @date 2021/7/3 10:23
 */
@ApiModel("流程实例详情")
@Data
public class ProcessInsDetailResponse {

    @ApiModelProperty("流程任务名称")
    private String name;

    @ApiModelProperty("流程业务Key")
    protected String businessKey;

    @ApiModelProperty("流程分类")
    private String category;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("持续时长")
    private String duration;

    //@ApiModelProperty("到期时间")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //private Date dueDate;

    @ApiModelProperty("版本")
    private Integer version;

    //流程信息
    @ApiModelProperty("流程实例Id")
    private String processInstanceId;

    @ApiModelProperty("流程定义Id")
    private String processDefinitionId;

    @ApiModelProperty("流程定义Key")
    private String processDefinitionKey;

    @ApiModelProperty("流程定义名称")
    private String processDefinitionName;

    @ApiModelProperty("父流程定义")
    private String superProcessInstanceId;


    @ApiModelProperty("发起人部门")
    private String startDeptName;

    @ApiModelProperty("流程发起人Code")
    private String startUserCode;

    @ApiModelProperty("流程发起人名称")
    private String startUserName;

    @ApiModelProperty("暂定状态")
    private boolean suspended;

    @ApiModelProperty("删除原因")
    private String deleteReason;


}
